.class Lcom/waiqin365/lightapp/chexiao/bv;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/chexiao/bs;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/chexiao/bs;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->e(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/h;

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->e(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-eq v1, v2, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v3}, Lcom/waiqin365/lightapp/chexiao/bs;->e(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;->getHeaderViewsCount()I

    move-result v3

    sub-int v3, p3, v3

    add-int/lit8 v3, v3, 0x1

    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/product/d/h;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/bs;->e(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/kehu/view/ListViewInScroller;->getHeaderViewsCount()I

    move-result v2

    sub-int v2, p3, v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/h;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v2, v0}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/bs;->g(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/chexiao/by;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/by;->notifyDataSetChanged()V

    :cond_1
    return-void

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/bv;->a:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/chexiao/bs;->a(Lcom/waiqin365/lightapp/chexiao/bs;Lcom/waiqin365/lightapp/product/d/h;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z

    goto :goto_0
.end method
